package com.study.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the orderlog database table.
 * 
 */
@Entity
@NamedQuery(name="Orderlog.findAll", query="SELECT o FROM Orderlog o")
public class Orderlog implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="orl_id")
	private int orlId;

	@Temporal(TemporalType.DATE)
	@Column(name="orl_date")
	private Date orlDate;

	@Column(name="orl_money")
	private BigDecimal orlMoney;

	@Column(name="orl_txt")
	private String orlTxt;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="orl_man")
	private Customer customer;

	//bi-directional many-to-one association to Orderform
	@ManyToOne
	@JoinColumn(name="o_id")
	private Orderform orderform;

	//bi-directional many-to-one association to Orderlogtype
	@ManyToOne
	@JoinColumn(name="olt_id")
	private Orderlogtype orderlogtype;

	public Orderlog() {
	}

	public int getOrlId() {
		return this.orlId;
	}

	public void setOrlId(int orlId) {
		this.orlId = orlId;
	}

	public Date getOrlDate() {
		return this.orlDate;
	}

	public void setOrlDate(Date orlDate) {
		this.orlDate = orlDate;
	}

	public BigDecimal getOrlMoney() {
		return this.orlMoney;
	}

	public void setOrlMoney(BigDecimal orlMoney) {
		this.orlMoney = orlMoney;
	}

	public String getOrlTxt() {
		return this.orlTxt;
	}

	public void setOrlTxt(String orlTxt) {
		this.orlTxt = orlTxt;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Orderform getOrderform() {
		return this.orderform;
	}

	public void setOrderform(Orderform orderform) {
		this.orderform = orderform;
	}

	public Orderlogtype getOrderlogtype() {
		return this.orderlogtype;
	}

	public void setOrderlogtype(Orderlogtype orderlogtype) {
		this.orderlogtype = orderlogtype;
	}

}